<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Phantastic: Référence de la classe Malenki\Phantastic\Permalink</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Phantastic
   &#160;<span id="projectnumber">0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Généré par Doxygen 1.8.1.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li><a href="namespaces.html"><span>Espaces&#160;de&#160;nommage</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Liste&#160;des&#160;classes</span></a></li>
      <li><a href="classes.html"><span>Index&#160;des&#160;classes</span></a></li>
      <li><a href="functions.html"><span>Membres&#160;de&#160;classe</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Espaces de nommage</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceMalenki.html">Malenki</a></li><li class="navelem"><a class="el" href="namespaceMalenki_1_1Phantastic.html">Phantastic</a></li><li class="navelem"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html">Permalink</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Fonctions membres publiques</a> &#124;
<a href="#pub-static-methods">Fonctions membres publiques statiques</a> &#124;
<a href="#pub-attribs">Attributs publics</a> &#124;
<a href="#pro-methods">Fonctions membres protégées</a> &#124;
<a href="#pro-static-methods">Fonctions membres protégées statiques</a> &#124;
<a href="#pro-attribs">Attributs protégés</a> &#124;
<a href="#pro-static-attribs">Attributs protégés statiques</a>  </div>
  <div class="headertitle">
<div class="title">Référence de la classe Malenki\Phantastic\Permalink</div>  </div>
</div><!--header-->
<div class="contents">

<p>Permet de construire des URL à partir d’un motif et de clés/valeurs fournies.  
 <a href="classMalenki_1_1Phantastic_1_1Permalink.html#details">Plus de détails...</a></p>

<p><a href="classMalenki_1_1Phantastic_1_1Permalink-members.html">Liste de tous les membres</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Fonctions membres publiques</h2></td></tr>
<tr class="memitem:a57d6e889ffdca3f9c55519890a425328"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a57d6e889ffdca3f9c55519890a425328">__construct</a> ($str)</td></tr>
<tr class="memitem:ac27d0b57a9f6652ee686b65c9e85b264"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#ac27d0b57a9f6652ee686b65c9e85b264">setCategories</a> (<a class="el" href="classMalenki_1_1Phantastic_1_1Category.html">Category</a> $cat)</td></tr>
<tr class="memitem:a0ecfade4c12cfcf08889f595b2f21ee7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a0ecfade4c12cfcf08889f595b2f21ee7">setYear</a> ($year)</td></tr>
<tr class="memitem:a31991cce674a7622d13857dbe4e2a470"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a31991cce674a7622d13857dbe4e2a470">setMonth</a> ($month)</td></tr>
<tr class="memitem:abbd5abe2d0fecd9f86cf3528d378ff55"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#abbd5abe2d0fecd9f86cf3528d378ff55">setDay</a> ($day)</td></tr>
<tr class="memitem:a72faf7f7b969baf4d66af8a45201a34d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a72faf7f7b969baf4d66af8a45201a34d">setDate</a> ()</td></tr>
<tr class="memitem:a18905d4cc0cd15f71c0e6e5ae87eff41"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a18905d4cc0cd15f71c0e6e5ae87eff41">setTitle</a> ($title)</td></tr>
<tr class="memitem:a20d03766f223acadf3867473f4380e3d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a20d03766f223acadf3867473f4380e3d">isOk</a> ()</td></tr>
<tr class="memdesc:a20d03766f223acadf3867473f4380e3d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Contrôle si toutes les paires clés/valeurs sont formées.  <a href="#a20d03766f223acadf3867473f4380e3d"></a><br/></td></tr>
<tr class="memitem:a82e4b8520c7fa9040cb7b23e93d689ff"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a82e4b8520c7fa9040cb7b23e93d689ff">getUrl</a> ($full=false)</td></tr>
<tr class="memdesc:a82e4b8520c7fa9040cb7b23e93d689ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">Récupère l’URL créée après l’avoir éventuellement construite.  <a href="#a82e4b8520c7fa9040cb7b23e93d689ff"></a><br/></td></tr>
<tr class="memitem:aff5a66bc7894b42574718701e1bf19dd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#aff5a66bc7894b42574718701e1bf19dd">__toString</a> ()</td></tr>
<tr class="memdesc:aff5a66bc7894b42574718701e1bf19dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retourne l’URL construite.  <a href="#aff5a66bc7894b42574718701e1bf19dd"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-static-methods"></a>
Fonctions membres publiques statiques</h2></td></tr>
<tr class="memitem:a27553d1ffc5e574a19ead99a80e2294f"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a27553d1ffc5e574a19ead99a80e2294f">cleanUrl</a> ($url)</td></tr>
<tr class="memdesc:a27553d1ffc5e574a19ead99a80e2294f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enlève les slashes surnumérairse résultant parfois de la construction de l’URL.  <a href="#a27553d1ffc5e574a19ead99a80e2294f"></a><br/></td></tr>
<tr class="memitem:a827771f2cbdb00b97b96422e60056dac"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a827771f2cbdb00b97b96422e60056dac">createSlug</a> ($str)</td></tr>
<tr class="memdesc:a827771f2cbdb00b97b96422e60056dac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Crée des morceaux d’URL avec uniquement des caractères ASCII et des tirets d’hyphénation.  <a href="#a827771f2cbdb00b97b96422e60056dac"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
Attributs publics</h2></td></tr>
<tr class="memitem:a3cb7975feba5f6322d1ef919f43e48e9"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a3cb7975feba5f6322d1ef919f43e48e9">BASE</a> = '/'</td></tr>
<tr class="memitem:a213d53be7944734c58cb4be53d6a1abb"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a213d53be7944734c58cb4be53d6a1abb">TAG</a> = '/tags/:title.html'</td></tr>
<tr class="memitem:ab2806392f6d639aba6b5783eab5131b6"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#ab2806392f6d639aba6b5783eab5131b6">POST</a> = '/:categories/:year/:month/:day/:title.html'</td></tr>
<tr class="memitem:ab1038e120afff067c9d7f33a417438ff"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#ab1038e120afff067c9d7f33a417438ff">PLACEHOLDER_CATEGORIES</a> = ':categories'</td></tr>
<tr class="memitem:a0db18f4514bfec69bb42e543b8153649"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a0db18f4514bfec69bb42e543b8153649">PLACEHOLDER_YEAR</a> = ':year'</td></tr>
<tr class="memitem:a73d8cbc9a7ab62e2c1a44c4473647e1b"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a73d8cbc9a7ab62e2c1a44c4473647e1b">PLACEHOLDER_MONTH</a> = ':month'</td></tr>
<tr class="memitem:a5044ad252ce7d8ca55dad0aa1ffc203b"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a5044ad252ce7d8ca55dad0aa1ffc203b">PLACEHOLDER_DAY</a> = ':day'</td></tr>
<tr class="memitem:af1245c04c1723456756ab6202e352d59"><td class="memItemLeft" align="right" valign="top">const&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#af1245c04c1723456756ab6202e352d59">PLACEHOLDER_TITLE</a> = ':title'</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-methods"></a>
Fonctions membres protégées</h2></td></tr>
<tr class="memitem:a51004a56d011d5046c366c8834a25761"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a51004a56d011d5046c366c8834a25761">parse</a> ($str)</td></tr>
<tr class="memdesc:a51004a56d011d5046c366c8834a25761"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lit le permalink pour en déterminer les placeholders éventuels.  <a href="#a51004a56d011d5046c366c8834a25761"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-static-methods"></a>
Fonctions membres protégées statiques</h2></td></tr>
<tr class="memitem:a6ad35b1274e34c8c16930d532a1a329c"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a6ad35b1274e34c8c16930d532a1a329c">checkPlaceholderName</a> ($str)</td></tr>
<tr class="memdesc:a6ad35b1274e34c8c16930d532a1a329c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Détermine si la chaîne du placeholder passée en paramètre est correcte.  <a href="#a6ad35b1274e34c8c16930d532a1a329c"></a><br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-attribs"></a>
Attributs protégés</h2></td></tr>
<tr class="memitem:a33fad7cfc1afd0b592f1ae164e080e5c"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a33fad7cfc1afd0b592f1ae164e080e5c">$str_permalink</a> = null</td></tr>
<tr class="memitem:abedfaab8fa89e0b8b713cb28a7407d9f"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#abedfaab8fa89e0b8b713cb28a7407d9f">$str_url</a> = null</td></tr>
<tr class="memitem:af12722db9ea5b5ea128b83c11df12cde"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#af12722db9ea5b5ea128b83c11df12cde">$int_count</a> = 0</td></tr>
<tr class="memitem:a9d8b14d06f205e3f6c536783bc81e1e1"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#a9d8b14d06f205e3f6c536783bc81e1e1">$arr_keys_values</a> = array()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-static-attribs"></a>
Attributs protégés statiques</h2></td></tr>
<tr class="memitem:ac1385b3889d6a4d230c6dad74cabca4b"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classMalenki_1_1Phantastic_1_1Permalink.html#ac1385b3889d6a4d230c6dad74cabca4b">$arr_placeholders</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Description détaillée</h2>
<div class="textblock"><p>Permet de construire des URL à partir d’un motif et de clés/valeurs fournies. </p>
<p>À différents niveaux, il est possible de spécifier des « permalinks » pour les Posts, les Pages… Ces « permalinks » peuvent être définis dans l’en-tête YAML ou le fichier de configuration.</p>
<p>Un permalink est un motif de l’URL à obtenir. Les parties à remplacer par des valeurs commencent par un deux point et sont composées de caractères alphabétiques minuscules.</p>
<p>Ces mots clés sont les suivants : <code>:categories</code>, <code>:year</code>, <code>:month,</code>:day<code> et</code>:title`.</p>
<dl class="section copyright"><dt>Copyright:</dt><dd>2012 Michel Petit </dd></dl>
<dl class="section author"><dt>Auteur:</dt><dd>Michel Petit <a href="#" onclick="location.href='mai'+'lto:'+'pet'+'it'+'.mi'+'ch'+'el@'+'gm'+'ail'+'.c'+'om'; return false;">petit<span style="display: none;">.nosp@m.</span>.mic<span style="display: none;">.nosp@m.</span>hel@g<span style="display: none;">.nosp@m.</span>mail<span style="display: none;">.nosp@m.</span>.com</a> </dd></dl>
</div><hr/><h2>Documentation des constructeurs et destructeur</h2>
<a class="anchor" id="a57d6e889ffdca3f9c55519890a425328"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::__construct </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/><h2>Documentation des fonctions membres</h2>
<a class="anchor" id="aff5a66bc7894b42574718701e1bf19dd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::__toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Retourne l’URL construite. </p>
<p>public </p>
<dl class="section return"><dt>Renvoie:</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a6ad35b1274e34c8c16930d532a1a329c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Malenki\Phantastic\Permalink::checkPlaceholderName </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Détermine si la chaîne du placeholder passée en paramètre est correcte. </p>
<p>Il y a un nombre limité de placeholders supportés. Cette méthode détermine si un placeholder donné existe bel et bien.</p>
<dl class="params"><dt>Paramètres:</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$str</td><td>protected </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie:</dt><dd>boolean </dd></dl>

</div>
</div>
<a class="anchor" id="a27553d1ffc5e574a19ead99a80e2294f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Malenki\Phantastic\Permalink::cleanUrl </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$url</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Enlève les slashes surnumérairse résultant parfois de la construction de l’URL. </p>
<dl class="params"><dt>Paramètres:</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$url</td><td>public </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie:</dt><dd>string </dd></dl>

</div>
</div>
<a class="anchor" id="a827771f2cbdb00b97b96422e60056dac"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Malenki\Phantastic\Permalink::createSlug </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Crée des morceaux d’URL avec uniquement des caractères ASCII et des tirets d’hyphénation. </p>
<p>Cette méthode statique prend en argument une chaîne de caractères qu’elle traite de manière à en convertir les caractères portant des diacritiques ou des caractères composés en caractères équivalents ASCII minuscules.</p>
<p>Ainsi, par exemple, la chaîne suivante : « BŒUF » donnera « boeuf » et celle-ci : « théâtre » donnera « theatre ».</p>
<p>Ensuite, tout ce qui n’est pas un caractère alphanumérique ASCII et tout ce qui n’est pas un tiret est éliminé, les tirets prennent la place de caractères spéciaux, comme les espaces, les ponctuations… Et les doublons tirets sont enlevés pour n’en laisser qu’un. La chaîne obtenue ne doit ni commencer, ni finir par un tiret.</p>
<p>Ainsi, la phrase « Mais ?! Où est donc Ornicar ? » donnera « mais-ou-est-donc-ornicar ».</p>
<p>Pour le moment, les langues d’Europe Occidentales sont supportées, mais bientôt quelques langues non basées sur un alphabet latin seront supportées. Ainsi le grec et le russe feront leur apparition avec un système de translitération. Soyez donc patient ;)</p>
<dl class="params"><dt>Paramètres:</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$str</td><td>public </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie:</dt><dd>string </dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000003">A faire:</a></b></dt><dd><p class="startdd">Supporter d’autres langues à alphabet latin dérivé comme le Turc, des langues d’Europe de l’Est, le Serbo-Croate, le Polonais, le Roumain, etc. </p>
<p>Supporter l’esperanto, en utilisant la notation « x ». </p>
<p>Faire un premier support des langues n’utilisant pas un alphabet latin. S’occuper alors en priorité du grec, du russe, du bulgare, de l’ukrainien. </p>
<p class="enddd">En priorité basse, voir pour le Coréen (langue à syllabe), voir s’il est possible d’obtenir un truc sympa sans trop faire compliqué. </p>
</dd></dl>

</div>
</div>
<a class="anchor" id="a82e4b8520c7fa9040cb7b23e93d689ff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::getUrl </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$full</em> = <code>false</code></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Récupère l’URL créée après l’avoir éventuellement construite. </p>
<p>public </p>
<dl class="params"><dt>Paramètres:</dt><dd>
  <table class="params">
    <tr><td class="paramtype">boolean</td><td class="paramname">$full</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie:</dt><dd>string </dd></dl>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000004">A faire:</a></b></dt><dd>prévoir le cas du paramètre full </dd></dl>

</div>
</div>
<a class="anchor" id="a20d03766f223acadf3867473f4380e3d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::isOk </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Contrôle si toutes les paires clés/valeurs sont formées. </p>
<p>public </p>
<dl class="section return"><dt>Renvoie:</dt><dd>boolean </dd></dl>

</div>
</div>
<a class="anchor" id="a51004a56d011d5046c366c8834a25761"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::parse </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$str</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Lit le permalink pour en déterminer les placeholders éventuels. </p>
<dl class="params"><dt>Paramètres:</dt><dd>
  <table class="params">
    <tr><td class="paramtype">string</td><td class="paramname">$str</td><td>Le permalink  protected </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Renvoie:</dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="ac27d0b57a9f6652ee686b65c9e85b264"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::setCategories </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classMalenki_1_1Phantastic_1_1Category.html">Category</a>&#160;</td>
          <td class="paramname"><em>$cat</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a72faf7f7b969baf4d66af8a45201a34d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::setDate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="abbd5abe2d0fecd9f86cf3528d378ff55"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::setDay </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$day</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a31991cce674a7622d13857dbe4e2a470"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::setMonth </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$month</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a18905d4cc0cd15f71c0e6e5ae87eff41"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::setTitle </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$title</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0ecfade4c12cfcf08889f595b2f21ee7"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::setYear </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$year</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/><h2>Documentation des données membres</h2>
<a class="anchor" id="a9d8b14d06f205e3f6c536783bc81e1e1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::$arr_keys_values = array()</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ac1385b3889d6a4d230c6dad74cabca4b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::$arr_placeholders</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<b>Valeur initiale :</b><div class="fragment"><div class="line"> array(</div>
<div class="line">        self::PLACEHOLDER_CATEGORIES,</div>
<div class="line">        self::PLACEHOLDER_YEAR,</div>
<div class="line">        self::PLACEHOLDER_MONTH,</div>
<div class="line">        self::PLACEHOLDER_DAY,</div>
<div class="line">        self::PLACEHOLDER_TITLE</div>
<div class="line">    )</div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="af12722db9ea5b5ea128b83c11df12cde"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::$int_count = 0</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a33fad7cfc1afd0b592f1ae164e080e5c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::$str_permalink = null</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="abedfaab8fa89e0b8b713cb28a7407d9f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Malenki\Phantastic\Permalink::$str_url = null</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a3cb7975feba5f6322d1ef919f43e48e9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Malenki\Phantastic\Permalink::BASE = '/'</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab1038e120afff067c9d7f33a417438ff"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Malenki\Phantastic\Permalink::PLACEHOLDER_CATEGORIES = ':categories'</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a5044ad252ce7d8ca55dad0aa1ffc203b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Malenki\Phantastic\Permalink::PLACEHOLDER_DAY = ':day'</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a73d8cbc9a7ab62e2c1a44c4473647e1b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Malenki\Phantastic\Permalink::PLACEHOLDER_MONTH = ':month'</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="af1245c04c1723456756ab6202e352d59"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Malenki\Phantastic\Permalink::PLACEHOLDER_TITLE = ':title'</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a0db18f4514bfec69bb42e543b8153649"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Malenki\Phantastic\Permalink::PLACEHOLDER_YEAR = ':year'</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="ab2806392f6d639aba6b5783eab5131b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Malenki\Phantastic\Permalink::POST = '/:categories/:year/:month/:day/:title.html'</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a class="anchor" id="a213d53be7944734c58cb4be53d6a1abb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Malenki\Phantastic\Permalink::TAG = '/tags/:title.html'</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>La documentation de cette classe a été générée à partir du fichier suivant :<ul>
<li>class/Permalink.php</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Généré le Lundi Juillet 30 2012 01:07:58 pour Phantastic par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.1
</small></address>
</body>
</html>
